# Contributor: Breno Leitao <breno.leitao@gmail.com>
# Maintainer:
pkgname=librtas
pkgver=2.0.4
pkgrel=0
pkgdesc="Librtas provides a set of libraries that access Run-Time Abstraction Services (RTAS)"
url="https://github.com/nfont/librtas"
arch="ppc64le"
options="!check"
license="LGPL-2.1-or-later"
makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nfont/librtas/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7a917583b54e0e99286680e5b2d6a9893dabf91cb8b457d67b721ee2e9f8f6cd25a2a2e5f51657b4dea2a9aba8b230c4bfb901323413cc867c76de4cb085290d  librtas-2.0.4.tar.gz
"
